-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split ch_tools into subworkflow relevant subchannels #308
Conversation
@nf-core-bot fix linting |
|
conf/test_experimental.config
Outdated
@@ -29,7 +29,8 @@ params { | |||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.samplesheet.csv' | |||
matrix = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.salmon.merged.gene_counts.top1000cov.tsv' | |||
contrasts = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.contrasts.csv' | |||
pathway = "propd,propd_grea,propr,cor" | |||
tools = "$projectDir/assets/tools_samplesheet.csv" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools is now declared inside nextflow.config with default value assets/tools_samplesheet.csv
, so you don't need it here
def correlation_map = it[0].subMap(["cor_method","args_cor"]) | ||
def enrichment_map = it[0].subMap(["enr_method","args_enr"]) | ||
[ pathway_name, differential_map, correlation_map, enrichment_map ] | ||
}.unique() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is super clean! I like it!
@@ -5,3 +5,4 @@ pcorbshrink,,,propr,--metric pcor.bshrink,, | |||
propr,,,propr,--metric rho,, | |||
cor,,,propr,--metric cor,, | |||
propd_grea,propd,,,,grea, | |||
deseq2,deseq2,,,,gsea, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deseq2 does not do anything yet here no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just a placeholder for how it would look like. And with your new additions it would become functional, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, with the new additions it would be good!
} | ||
.branch { | ||
grea: it[0]["enr_method"] == "grea" | ||
gsea: it[0]["enr_method"] == "gsea" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gsea dont use ch_adjacency as input.
So we can maybe just branch ch_tools into grea and gsea at the beginning, and use ch_tools.grea in the GREA section to combine it with ch_adjacency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, yes, that sounds good to me. But I'd would change it then when we include gsea.
Thank you @bjlang overall it looks good to me! |
…ata/argument combination
PR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).